import {
  Column,
  CreateDateColumn,
  Entity,
  PrimaryGeneratedColumn,
} from 'typeorm';

@Entity('tb_sms', {
  comment: '短信表',
})
export class Sms {
  @PrimaryGeneratedColumn('increment', { comment: '自增主键', unsigned: true })
  id: number;

  @Column({ comment: '短信签名' })
  sign: string;

  @Column({ comment: '目标号码' })
  phone: string;

  // 验证码, 通知(营销短信)
  @Column({ comment: '短信类型' })
  type: string;

  @Column({ comment: '短信内容' })
  content: string;

  @Column({ comment: '短信状态' })
  status: string;

  @CreateDateColumn({ comment: '发送时间' })
  time: Date;
}
